package com.tjhk.netty.test.model;

import com.tjhk.netty.serialize.DataType;
import com.tjhk.netty.serialize.annotation.Field;

public class MyHeader {
    public static int headerLength = 3;

    @Field(index = 0,length = 1,type = DataType.BYTE,desc = "消息类型")
    private Integer messageId;

    @Field(index = 0,length = 2,type = DataType.WORD,desc = "数据长度")
    private Integer bodyLength;

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public Integer getMessageId() {
        return this.messageId;
    }

    public Integer getBodyLength() {
        return bodyLength;
    }

    public void setBodyLength(Integer bodyLength) {
        this.bodyLength = bodyLength;
    }
}
